<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>饮水记录 - 喝水小管家</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8fafc;
        }
        .status-bar {
            background-color: #000;
            color: white;
            padding: 5px 15px;
            display: flex;
            justify-content: space-between;
            font-size: 12px;
        }
        .nav-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #64748b;
            font-size: 10px;
        }
        .nav-item.active {
            color: #3b82f6;
        }
        .nav-icon {
            font-size: 22px;
            margin-bottom: 3px;
        }
        .type-btn {
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        .type-btn.active {
            border-color: #3b82f6;
            background-color: #eff6ff;
        }
        .amount-btn {
            transition: all 0.2s;
        }
        .amount-btn.active {
            background-color: #3b82f6;
            color: white;
        }
        .amount-btn:active {
            transform: scale(0.95);
        }
        .slider {
            -webkit-appearance: none;
            height: 8px;
            border-radius: 5px;  
            background: #e2e8f0;
            outline: none;
        }
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%; 
            background: #3b82f6;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
    </style>
</head>
<body>
    <!-- 状态栏 -->
    <div class="status-bar">
        <span>9:41</span>
        <div>
            <span class="mr-1"><i class="fas fa-signal"></i></span>
            <span class="mr-1"><i class="fas fa-wifi"></i></span>
            <span><i class="fas fa-battery-full"></i></span>
        </div>
    </div>

    <!-- 内容区域 -->
    <div class="px-4 pt-3 pb-20">
        <!-- 顶部标题 -->
        <div class="flex justify-between items-center py-2">
            <h1 class="text-xl font-bold text-gray-800">记录饮水</h1>
            <button class="text-gray-400"><i class="fas fa-ellipsis-h"></i></button>
        </div>
        
        <!-- 日期选择 -->
        <div class="bg-white rounded-2xl shadow-sm p-4 mt-3">
            <div class="flex justify-between items-center">
                <button class="text-gray-400"><i class="fas fa-chevron-left"></i></button>
                <div class="text-center">
                    <h3 class="font-semibold text-gray-800">2023年7月15日</h3>
                    <p class="text-xs text-gray-500">星期六 今天</p>
                </div>
                <button class="text-gray-400"><i class="fas fa-chevron-right"></i></button>
            </div>
        </div>
        
        <!-- 饮水类型选择 -->
        <div class="mt-5">
            <h3 class="text-lg font-semibold text-gray-800 mb-3">饮水类型</h3>
            <div class="grid grid-cols-4 gap-3">
                <div class="type-btn active p-3 rounded-xl bg-white shadow-sm flex flex-col items-center">
                    <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-tint text-blue-500 text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">白水</span>
                </div>
                <div class="type-btn p-3 rounded-xl bg-white shadow-sm flex flex-col items-center">
                    <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-leaf text-green-500 text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">茶水</span>
                </div>
                <div class="type-btn p-3 rounded-xl bg-white shadow-sm flex flex-col items-center">
                    <div class="w-12 h-12 bg-yellow-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-coffee text-yellow-700 text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">咖啡</span>
                </div>
                <div class="type-btn p-3 rounded-xl bg-white shadow-sm flex flex-col items-center">
                    <div class="w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-apple-alt text-red-500 text-xl"></i>
                    </div>
                    <span class="text-xs text-gray-700">果汁</span>
                </div>
            </div>
        </div>
        
        <!-- 饮水量设置 -->
        <div class="mt-6">
            <div class="flex justify-between items-center mb-3">
                <h3 class="text-lg font-semibold text-gray-800">饮水量</h3>
                <div class="bg-blue-100 rounded-full px-3 py-1">
                    <span class="text-blue-500 font-medium">300ml</span>
                </div>
            </div>
            
            <!-- 预设选项 -->
            <div class="flex flex-wrap gap-2 mb-4">
                <button class="amount-btn rounded-full px-4 py-2 bg-white shadow-sm text-sm">100ml</button>
                <button class="amount-btn rounded-full px-4 py-2 bg-white shadow-sm text-sm">200ml</button>
                <button class="amount-btn active rounded-full px-4 py-2 bg-white shadow-sm text-sm">300ml</button>
                <button class="amount-btn rounded-full px-4 py-2 bg-white shadow-sm text-sm">500ml</button>
                <button class="amount-btn rounded-full px-4 py-2 bg-white shadow-sm text-sm">1000ml</button>
            </div>
            
            <!-- 自定义滑块 -->
            <div class="bg-white rounded-2xl shadow-sm p-4">
                <input type="range" min="0" max="1000" value="300" class="slider w-full mb-2">
                <div class="flex justify-between text-xs text-gray-500">
                    <span>0ml</span>
                    <span>500ml</span>
                    <span>1000ml</span>
                </div>
            </div>
        </div>
        
        <!-- 时间选择 -->
        <div class="mt-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-3">饮水时间</h3>
            <div class="bg-white rounded-2xl shadow-sm p-4 flex justify-between items-center">
                <div class="flex items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                        <i class="fas fa-clock text-blue-500"></i>
                    </div>
                    <span class="text-gray-800">现在</span>
                </div>
                <div class="text-lg font-medium text-gray-800">14:30</div>
            </div>
        </div>
        
        <!-- 保存按钮 -->
        <div class="mt-8">
            <button class="w-full bg-blue-500 text-white font-medium py-3 rounded-xl shadow-md">保存记录</button>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="nav-bar">
        <div class="nav-item">
            <div class="nav-icon"><i class="fas fa-home"></i></div>
            <span>首页</span>
        </div>
        <div class="nav-item active">
            <div class="nav-icon"><i class="fas fa-list"></i></div>
            <span>记录</span>
        </div>
        <div class="nav-item">
            <div class="nav-icon"><i class="fas fa-chart-bar"></i></div>
            <span>统计</span>
        </div>
        <div class="nav-item">
            <div class="nav-icon"><i class="fas fa-user"></i></div>
            <span>我的</span>
        </div>
    </div>
</body>
</html> 